<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class OperatorType extends Model
{
    /**
     * 关联到模型的数据表
     *
     * @var string
     */
    protected $table = 'operator_types';

    protected $fillable = [];

    public function gettypes(){
        $get = OperatorType::all()->keyBy('id')->toArray();
        return $get;
    }
    public function gettypename($id){
        $get = OperatorType::find($id)->toArray();
        return $get;
    }
}
